﻿using Acme.BookStore.Books;
using Acme.ShopStore.Books;
using Acme.ShopStore.Shops;
using Acme.ShopStore.ShopSpecificas;
using Acme.ShopStore.ShopUsers;
using Acme.ShopStore.Users;
using AutoMapper;

namespace Acme.ShopStore
{
    public class ShopStoreApplicationAutoMapperProfile : Profile
    {
        public ShopStoreApplicationAutoMapperProfile()
        {
            /* You can configure your AutoMapper mapping configuration here.
             * Alternatively, you can split your mapping configurations
             * into multiple profile classes for a better organization. */

            CreateMap<Book, BookDto>();
            CreateMap<CreateUpdateBookDto, Book>();

            CreateMap<Shop, ShopDto>();
            CreateMap<CreateUpdateShopDto, Shop>();

            CreateMap<ShopUser, ShopUserDto>();
            CreateMap<CreateUpdateShopUserDto, ShopUser>();

            CreateMap<ShopSpecifica, ShopSpecificaDto>();
            CreateMap<CreateUpdateShopSpecificaDto, ShopSpecifica>();
        }
    }
}
